package com.crm.model.entity.sys;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UpdatePswExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UpdatePswExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUpdateIdIsNull() {
            addCriterion("update_id is null");
            return (Criteria) this;
        }

        public Criteria andUpdateIdIsNotNull() {
            addCriterion("update_id is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateIdEqualTo(String value) {
            addCriterion("update_id =", value, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdNotEqualTo(String value) {
            addCriterion("update_id <>", value, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdGreaterThan(String value) {
            addCriterion("update_id >", value, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdGreaterThanOrEqualTo(String value) {
            addCriterion("update_id >=", value, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdLessThan(String value) {
            addCriterion("update_id <", value, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdLessThanOrEqualTo(String value) {
            addCriterion("update_id <=", value, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdLike(String value) {
            addCriterion("update_id like", value, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdNotLike(String value) {
            addCriterion("update_id not like", value, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdIn(List<String> values) {
            addCriterion("update_id in", values, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdNotIn(List<String> values) {
            addCriterion("update_id not in", values, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdBetween(String value1, String value2) {
            addCriterion("update_id between", value1, value2, "updateId");
            return (Criteria) this;
        }

        public Criteria andUpdateIdNotBetween(String value1, String value2) {
            addCriterion("update_id not between", value1, value2, "updateId");
            return (Criteria) this;
        }

        public Criteria andAccountIdIsNull() {
            addCriterion("account_id is null");
            return (Criteria) this;
        }

        public Criteria andAccountIdIsNotNull() {
            addCriterion("account_id is not null");
            return (Criteria) this;
        }

        public Criteria andAccountIdEqualTo(String value) {
            addCriterion("account_id =", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdNotEqualTo(String value) {
            addCriterion("account_id <>", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdGreaterThan(String value) {
            addCriterion("account_id >", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdGreaterThanOrEqualTo(String value) {
            addCriterion("account_id >=", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdLessThan(String value) {
            addCriterion("account_id <", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdLessThanOrEqualTo(String value) {
            addCriterion("account_id <=", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdLike(String value) {
            addCriterion("account_id like", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdNotLike(String value) {
            addCriterion("account_id not like", value, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdIn(List<String> values) {
            addCriterion("account_id in", values, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdNotIn(List<String> values) {
            addCriterion("account_id not in", values, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdBetween(String value1, String value2) {
            addCriterion("account_id between", value1, value2, "accountId");
            return (Criteria) this;
        }

        public Criteria andAccountIdNotBetween(String value1, String value2) {
            addCriterion("account_id not between", value1, value2, "accountId");
            return (Criteria) this;
        }

        public Criteria andUserAccountIsNull() {
            addCriterion("user_account is null");
            return (Criteria) this;
        }

        public Criteria andUserAccountIsNotNull() {
            addCriterion("user_account is not null");
            return (Criteria) this;
        }

        public Criteria andUserAccountEqualTo(String value) {
            addCriterion("user_account =", value, "userAccount");
            return (Criteria) this;
        }

        public Criteria andUserAccountNotEqualTo(String value) {
            addCriterion("user_account <>", value, "userAccount");
            return (Criteria) this;
        }

        public Criteria andUserAccountGreaterThan(String value) {
            addCriterion("user_account >", value, "userAccount");
            return (Criteria) this;
        }

        public Criteria andUserAccountGreaterThanOrEqualTo(String value) {
            addCriterion("user_account >=", value, "userAccount");
            return (Criteria) this;
        }

        public Criteria andUserAccountLessThan(String value) {
            addCriterion("user_account <", value, "userAccount");
            return (Criteria) this;
        }

        public Criteria andUserAccountLessThanOrEqualTo(String value) {
            addCriterion("user_account <=", value, "userAccount");
            return (Criteria) this;
        }

        public Criteria andUserAccountLike(String value) {
            addCriterion("user_account like", value, "userAccount");
            return (Criteria) this;
        }

        public Criteria andUserAccountNotLike(String value) {
            addCriterion("user_account not like", value, "userAccount");
            return (Criteria) this;
        }

        public Criteria andUserAccountIn(List<String> values) {
            addCriterion("user_account in", values, "userAccount");
            return (Criteria) this;
        }

        public Criteria andUserAccountNotIn(List<String> values) {
            addCriterion("user_account not in", values, "userAccount");
            return (Criteria) this;
        }

        public Criteria andUserAccountBetween(String value1, String value2) {
            addCriterion("user_account between", value1, value2, "userAccount");
            return (Criteria) this;
        }

        public Criteria andUserAccountNotBetween(String value1, String value2) {
            addCriterion("user_account not between", value1, value2, "userAccount");
            return (Criteria) this;
        }

        public Criteria andOldPasswordIsNull() {
            addCriterion("old_password is null");
            return (Criteria) this;
        }

        public Criteria andOldPasswordIsNotNull() {
            addCriterion("old_password is not null");
            return (Criteria) this;
        }

        public Criteria andOldPasswordEqualTo(String value) {
            addCriterion("old_password =", value, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordNotEqualTo(String value) {
            addCriterion("old_password <>", value, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordGreaterThan(String value) {
            addCriterion("old_password >", value, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("old_password >=", value, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordLessThan(String value) {
            addCriterion("old_password <", value, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordLessThanOrEqualTo(String value) {
            addCriterion("old_password <=", value, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordLike(String value) {
            addCriterion("old_password like", value, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordNotLike(String value) {
            addCriterion("old_password not like", value, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordIn(List<String> values) {
            addCriterion("old_password in", values, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordNotIn(List<String> values) {
            addCriterion("old_password not in", values, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordBetween(String value1, String value2) {
            addCriterion("old_password between", value1, value2, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andOldPasswordNotBetween(String value1, String value2) {
            addCriterion("old_password not between", value1, value2, "oldPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordIsNull() {
            addCriterion("new_password is null");
            return (Criteria) this;
        }

        public Criteria andNewPasswordIsNotNull() {
            addCriterion("new_password is not null");
            return (Criteria) this;
        }

        public Criteria andNewPasswordEqualTo(String value) {
            addCriterion("new_password =", value, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordNotEqualTo(String value) {
            addCriterion("new_password <>", value, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordGreaterThan(String value) {
            addCriterion("new_password >", value, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("new_password >=", value, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordLessThan(String value) {
            addCriterion("new_password <", value, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordLessThanOrEqualTo(String value) {
            addCriterion("new_password <=", value, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordLike(String value) {
            addCriterion("new_password like", value, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordNotLike(String value) {
            addCriterion("new_password not like", value, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordIn(List<String> values) {
            addCriterion("new_password in", values, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordNotIn(List<String> values) {
            addCriterion("new_password not in", values, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordBetween(String value1, String value2) {
            addCriterion("new_password between", value1, value2, "newPassword");
            return (Criteria) this;
        }

        public Criteria andNewPasswordNotBetween(String value1, String value2) {
            addCriterion("new_password not between", value1, value2, "newPassword");
            return (Criteria) this;
        }

        public Criteria andOperateIdIsNull() {
            addCriterion("operate_id is null");
            return (Criteria) this;
        }

        public Criteria andOperateIdIsNotNull() {
            addCriterion("operate_id is not null");
            return (Criteria) this;
        }

        public Criteria andOperateIdEqualTo(String value) {
            addCriterion("operate_id =", value, "operateId");
            return (Criteria) this;
        }

        public Criteria andOperateIdNotEqualTo(String value) {
            addCriterion("operate_id <>", value, "operateId");
            return (Criteria) this;
        }

        public Criteria andOperateIdGreaterThan(String value) {
            addCriterion("operate_id >", value, "operateId");
            return (Criteria) this;
        }

        public Criteria andOperateIdGreaterThanOrEqualTo(String value) {
            addCriterion("operate_id >=", value, "operateId");
            return (Criteria) this;
        }

        public Criteria andOperateIdLessThan(String value) {
            addCriterion("operate_id <", value, "operateId");
            return (Criteria) this;
        }

        public Criteria andOperateIdLessThanOrEqualTo(String value) {
            addCriterion("operate_id <=", value, "operateId");
            return (Criteria) this;
        }

        public Criteria andOperateIdLike(String value) {
            addCriterion("operate_id like", value, "operateId");
            return (Criteria) this;
        }

        public Criteria andOperateIdNotLike(String value) {
            addCriterion("operate_id not like", value, "operateId");
            return (Criteria) this;
        }

        public Criteria andOperateIdIn(List<String> values) {
            addCriterion("operate_id in", values, "operateId");
            return (Criteria) this;
        }

        public Criteria andOperateIdNotIn(List<String> values) {
            addCriterion("operate_id not in", values, "operateId");
            return (Criteria) this;
        }

        public Criteria andOperateIdBetween(String value1, String value2) {
            addCriterion("operate_id between", value1, value2, "operateId");
            return (Criteria) this;
        }

        public Criteria andOperateIdNotBetween(String value1, String value2) {
            addCriterion("operate_id not between", value1, value2, "operateId");
            return (Criteria) this;
        }

        public Criteria andOperateTmIsNull() {
            addCriterion("operate_tm is null");
            return (Criteria) this;
        }

        public Criteria andOperateTmIsNotNull() {
            addCriterion("operate_tm is not null");
            return (Criteria) this;
        }

        public Criteria andOperateTmEqualTo(Date value) {
            addCriterion("operate_tm =", value, "operateTm");
            return (Criteria) this;
        }

        public Criteria andOperateTmNotEqualTo(Date value) {
            addCriterion("operate_tm <>", value, "operateTm");
            return (Criteria) this;
        }

        public Criteria andOperateTmGreaterThan(Date value) {
            addCriterion("operate_tm >", value, "operateTm");
            return (Criteria) this;
        }

        public Criteria andOperateTmGreaterThanOrEqualTo(Date value) {
            addCriterion("operate_tm >=", value, "operateTm");
            return (Criteria) this;
        }

        public Criteria andOperateTmLessThan(Date value) {
            addCriterion("operate_tm <", value, "operateTm");
            return (Criteria) this;
        }

        public Criteria andOperateTmLessThanOrEqualTo(Date value) {
            addCriterion("operate_tm <=", value, "operateTm");
            return (Criteria) this;
        }

        public Criteria andOperateTmIn(List<Date> values) {
            addCriterion("operate_tm in", values, "operateTm");
            return (Criteria) this;
        }

        public Criteria andOperateTmNotIn(List<Date> values) {
            addCriterion("operate_tm not in", values, "operateTm");
            return (Criteria) this;
        }

        public Criteria andOperateTmBetween(Date value1, Date value2) {
            addCriterion("operate_tm between", value1, value2, "operateTm");
            return (Criteria) this;
        }

        public Criteria andOperateTmNotBetween(Date value1, Date value2) {
            addCriterion("operate_tm not between", value1, value2, "operateTm");
            return (Criteria) this;
        }

        public Criteria andOperateResultIsNull() {
            addCriterion("operate_result is null");
            return (Criteria) this;
        }

        public Criteria andOperateResultIsNotNull() {
            addCriterion("operate_result is not null");
            return (Criteria) this;
        }

        public Criteria andOperateResultEqualTo(Short value) {
            addCriterion("operate_result =", value, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultNotEqualTo(Short value) {
            addCriterion("operate_result <>", value, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultGreaterThan(Short value) {
            addCriterion("operate_result >", value, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultGreaterThanOrEqualTo(Short value) {
            addCriterion("operate_result >=", value, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultLessThan(Short value) {
            addCriterion("operate_result <", value, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultLessThanOrEqualTo(Short value) {
            addCriterion("operate_result <=", value, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultIn(List<Short> values) {
            addCriterion("operate_result in", values, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultNotIn(List<Short> values) {
            addCriterion("operate_result not in", values, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultBetween(Short value1, Short value2) {
            addCriterion("operate_result between", value1, value2, "operateResult");
            return (Criteria) this;
        }

        public Criteria andOperateResultNotBetween(Short value1, Short value2) {
            addCriterion("operate_result not between", value1, value2, "operateResult");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}